#pragma once
#include "DDefine.h"

class DWindow
{
protected:

	HWND			m_hWnd;
	int				m_width;
	int				m_height;
	HINSTANCE		m_hInstance;
	TCHAR			m_winName[MAX_PATH];

public:
	DWindow(void);
	virtual ~DWindow(void);

	bool			CreateWin(	HINSTANCE hInstance, 
									const TCHAR* winName = _T("DWindowApp") , 
									int width = 1280, 
									int height = 1024);
	int				WinRun();
	void			DestroyWin();
	LRESULT		WindowProc(	HWND hWnd, 
										UINT message, 
										WPARAM wParam, 
										LPARAM lParam);
	void SetHwnd(HWND hWnd) { m_hWnd = hWnd; }

};
